package com.maysham.coder.server.model;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.security.core.GrantedAuthority;

@Document
@Data
public class Role extends BaseModel implements GrantedAuthority {
    private String name;

    @Override
    public String getAuthority() {
        return name;
    }
}
